/**
 * 
 */
package com.vision.core.cm.action;

import java.io.Serializable;
import java.util.List;

import net.customware.gwt.dispatch.shared.Result;

import com.sencha.gxt.data.shared.loader.PagingLoadResult;
import com.vision.core.cm.db.data.ActivityLog;

/**
 * @author Mark
 *
 */
public class GetActivityLogsResult implements PagingLoadResult<ActivityLog<?>>, Result, Serializable {

	private static final long serialVersionUID = 1L;

	private int offset;
	private int totalLength;
	
	private List<ActivityLog<?>> logs;
	
	GetActivityLogsResult() { } // For Serializable
	
	public GetActivityLogsResult(List<ActivityLog<?>> logs, int offset) {
		this.logs = logs;
		this.offset = offset;
	}

	public List<ActivityLog<?>> getLogs() {
		return logs;
	}

	public void setLogs(List<ActivityLog<?>> logs) {
		this.logs = logs;
	}

	@Override
	public List<ActivityLog<?>> getData() {
		return logs;
	}

	@Override
	public int getOffset() {
		return offset;
	}
	
	@Override
	public void setOffset(int offset) {
		this.offset = offset;
	}

	@Override
	public int getTotalLength() {
		return totalLength;
	}
	
	@Override
	public void setTotalLength(int totalLength) {
		this.totalLength = totalLength;
	}
	
}
